import React from 'react';

// stateless 少写state
// SFC( Stateless Function Component )
export default function MyFunctionComponent (props) {
    const x = 1;
    const y = 2;
    
    props.fn(x, y);
    // 没有自己的state
    return (
        <div>{ props.msg }</div>
    );
}
